package org.jsbd.boss.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IReaderStatisticsDAO;
import org.jsbd.boss.domian.channel.FlowChartDto;
import org.jsbd.boss.domian.channel.ReaderStatisticsDto;
import org.jsbd.boss.domian.channel.ReaderStatisticsVO;
import org.jsbd.boss.service.IReaderStatisticsService;
import org.springframework.stereotype.Service;

@Service("readerStatisticsService")
public class ReaderStatisticsServiceImpl implements IReaderStatisticsService {
	
	@Resource
	private IReaderStatisticsDAO readerStatisticsDao;
	
	@Override
	public Integer getMonthNum(ReaderStatisticsVO rsVO) {
		return readerStatisticsDao.getMonthNum(rsVO);
	}

	
	@Override
	public List<String> selectXAxis(String date) {
		return readerStatisticsDao.selectXAxis(date);
	}

	@Override
	public List<ReaderStatisticsDto> selectYAxis(ReaderStatisticsVO rsVO) {
		return readerStatisticsDao.selectYAxis(rsVO);
	}


	@Override
	public Map<String, Object> findDataWithPage(DataGridModel page) {
		return readerStatisticsDao.findDataWithPage(page);
	}

	
}
